<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
 <script type="text/javascript" src="../js/common.js"></script>
   <link rel="stylesheet" href="../css/960.css" type="text/css" media="screen">
   <link rel="stylesheet" href="../css/screen.css" type="text/css" media="screen" />
   <link rel="stylesheet" href="../css/print.css" type="text/css" media="print" />
   <link rel="stylesheet" href="../css/print-preview.css" type="text/css" media="screen">
   <script src="http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js"></script>
   <script src="../js/jquery.print-preview.js" type="text/javascript" charset="utf-8"></script>
   <script src="../js/find.js" type="text/javascript" charset="utf-8"></script>
   <script src="../js/utils.js" type="text/javascript" charset="utf-8"></script>
   <script type="text/javascript">
        $(function() {
           // $("#feature > div").scrollable({interval: 2000}).autoscroll();
            //$("#feature333 > div").scrollable({interval: 2000}).autoscroll();
            //$('#aside').prepend('<a class="print-preview">Print this page</a>');

            
            var id = getIdByName("id");
            
            
            var dt = _findInfo("../custinvntryrecord/find/id/"+id, null);
            if(IsNotEmpty(dt)&&dt.state==0){
            	$("#identiCode").html(getHtmlString(getHeadIndexValue(0, dt, "identiCode")));
            	$("#goodsName").html(getHtmlString(getHeadIndexValue(0, dt, "goodsName")));
            	$("#memberCard").html(getHtmlString(getHeadIndexValue(0, dt, "memberCard")));
            	$("#mp").html(getHtmlString(getHeadIndexValue(0, dt, "mp")));
            	$("#startDate").html(getHtmlString(getHeadIndexValue(0, dt, "startDate")));
            	$("#endDate").html(getHtmlString(getHeadIndexValue(0, dt, "endDate")));
            	$("#receName").html(getHtmlString(getHeadIndexValue(0, dt, "receName")));
            	$("#note").html(getHtmlString(getHeadIndexValue(0, dt, "note")));
            	$("#vol").html(getHtmlString(getHeadIndexValue(0, dt, "vol")));
            	
                }
            var nowDate = new Date();
            $("#now").html( nowDate.getFullYear()+"-"+(nowDate.getMonth() + 1)+"-"+nowDate.getDate())
            
                    $.printPreview.loadPrintPreview();
            
         /*    // Add keybinding (not recommended for production use)
            $(document).bind('keydown', function(e) {
                var code = (e.keyCode ? e.keyCode : e.which);
                if (code == 80 && !$('#print-modal').length) {
                    $.printPreview.loadPrintPreview();
                    return false;
                }            
            }); */
        });
    </script>
</head>
<body>
<center>
<div id="printId" class="list">
	<div class="record" align="center" style="font-size: 17px;text-align: center;">存货单</div>
	<div class="record"><label><span>存货日期：</span><i id="startDate"></i></label></div>
	<div class="record"><label><span>过期日期：</span><i id="endDate"></i></label></div>
	<div class="record"><label><span>联系电话：</span><i id="mp"></i></label></div>
	<div class="record"><label><span>识别号：</span><i id="identiCode"></i></label></div>
    <div class="record"><label><span>存货名称：</span><i id="goodsName" ></i></label></div>
    <div class="record"><label><span>剩余容量：</span><i id="vol" ></i></label></div>
	<div class="record"><label><span>备注：</span><strong class="sort"  id="extractionDate"></strong></label></div>
    <div class="record"><label><span>经办人：</span><i  id="receName"></i></label></div>
    <div class="record"><label><span>打票日期：</span><i id="now"></i></label></div>
    <div class="record"><label><span>客户签字：</span><i ></i></label></div>
    <div style="height:10px;"></div>
</div>
</center>

</body>
<style type="text/css">
#print-modal{width:400px;margin-left:-200px;padding:0 20px;}
.tb1 td,.tb1 th{text-align:center;padding:2px 3px;}
.list{width:260px;}
.enter .btn{padding:4px 14px;background-color:#0079BA;border:none;font-size:14px;font-family:Microsoft Yahei;color:#fff;border-radius:3px;}
.record{text-align:left;line-height:20px;margin-bottom:10px;white-space: nowrap;}
.record label{margin-right:16px;}
.record .sort{word-wrap:break-word;font-weight:normal;width:540px;display:inline-block;vertical-align:top;}
.record i{display:inline-block;border-bottom:1px solid #ccc;font-style:normal;min-width:100px;}
.record textarea{vertical-align:top;min-width:500px;min-height:20px;background:none;border:none;resize:none;}
</style>
</html>